package com.customization.unionpay.contract.workflowaction;

import com.customization.unionpay.contract.serivce.IContractDataSynService;
import com.customization.unionpay.contract.serivce.impl.IContractDataSynServiceImpl;
import com.engine.common.util.ServiceUtil;
import weaver.general.BaseBean;
import weaver.interfaces.workflow.action.Action;
import weaver.soa.workflow.request.RequestInfo;

/**
 * 合同计提流程结束action
 */
public class ContractProvisionEndAction extends BaseBean implements Action {

    private IContractDataSynService getContractDataSynService() {
        return ServiceUtil.getService(IContractDataSynServiceImpl.class);
    }

    @Override
    public String execute(RequestInfo requestInfo) {
//        RequestManager manager =requestInfo.getRequestManager();
//        int formId = manager.getFormid();
//        int requestId = manager.getRequestid();
//        //流程主表
//        String tableName = CommonUtils.getNameById(String.valueOf(formId));
//        String dtTable1 = tableName + "_dt1";
//        try {
//            //扣减合同计提余额
//            RecordSetTrans rst = new RecordSetTrans();
//            String sql = "select id from ";
//            //todo
//            // 预算占用转执行接口
//            // 合同计提余额写入接口
//
//
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
        return SUCCESS;
    }
}
